<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', 'IndexController@index')->name('index');
//登录
Route::any('/login','UserController@login')->name('login');
//注册
Route::any('/register','UserController@register')->name('register');
//redis调试
Route::any('/redis','IndexController@RedisTest')->name('redis');

//路由前缀
Route::prefix('user')->group( function(){

});
//中间件
Route::group(['middleware'=>['checkcookie']],function() {
    //home
    Route::get('/home', 'HomeController@index')->name('home');
    //登出
    Route::get('/loginout', 'UserController@login_out')->name('loginout');
    //自动化生成地址
    Route::get('/autoall','AutoController@index')->name('autoall');
    //路由前缀
    Route::prefix('/auto')->group( function(){
        //获取火币全球站币种
        Route::get('/getHuobiList','AutoController@getHuobiList')->name('getHuobiList');
        //获取币安币种
        Route::get('/getBianList','AutoController@getBianList')->name('getBianList');
        //获取币种详情
        Route::get('/getCoinDetail','AutoController@getCoinDetail')->name('getCoinDetail');
        //菲小号自动获取数据
        Route::get('/getFeiXH','AutoController@getFeiXH')->name('getFeiXH');
        //自动抓取流通量和发行量
        Route::get('/getCoinSupply','AutoController@getCoinSupply')->name('getCoinSupply');
    });

});
